﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.Default" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>经销商平台--石川岛中骏(厦门)建机有限公司</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="bookmark" href="/favicon.ico"/>
<!--[if IE]>
<link href="/MachineSys/themes/css/ieHack.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
                <div style=" float:left; line-height:50px; padding-left:10px; color:White; font-size:20px; font-weight:bold;">
                    经销商平台
                    <%=GetDBName%>
                </div>
				
				<ul class="nav">  
                     <% 
                         if (HasPower("AlermWarnSendPartList", new IHISCETeim.Web.Permission[] { IHISCETeim.Web.Permission.查看 }))
                    {%>
                    <li><a href="SvrMgr/AlermWarnSendPartList.aspx" target="dialog"  style="color:Red;" rel="AlermWarnSendPartList" max=false  mask=false  maxable=false  minable=true  resizable=false drawable=true  width="800" height="500">配件发货警报</a></li>
                    <%
                        } 
                    %>
                    <li><a>当前用户:<%=User.RealName %></a></li>					
					<li><a href="/MachineSys/SysBasic/OUser_EditPwd.aspx" rel="OUser_EditPwd" target="dialog" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="520" height="250">更改密码</a></li>					
					<%if( User.UserType == 1){ %>
                    <li><a href="/MachineSys/Default.aspx">转到信息平台</a></li>
                    <%} %>
                    <li><a href="/MachineSys/login.aspx?ajaxmethod=loginout">安全退出</a></li>
				</ul>
				
			</div>	         
		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
                    <h2 style="padding-left:4px; padding-top:5px;">点击显示主菜单</h2>
				</div>
                
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>

				<div class="accordion" fillSpace="sidebar">					
                    <%=GetMenu()%>
				</div>
               
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="accountInfo">                           
                            <div class="alertInfo UserMySetting">							
							   <h2><span>个性化设置</span>(刷新页面就可生效)</h2>
                               <p>
                                    <label><input type="checkbox" name="AutoHideMenu" value="checked" <%=GetMySettingValue("AutoHideMenu") %> /> 自动隐藏导航菜单</label>
                                    <label><input type="checkbox" name="AutoPoppingAlarm" value="checked" <%=GetMySettingValue("AutoPoppingAlarm") %>/> 自动弹出相关警报</label>
                                </p>          
                               
						    </div>                           
                            <p style=" margin-bottom:5px;"><span>欢迎进入IHISCE信息化管理系统</span></p>	
                            <p> 您上次登陆时间为[<%=User.LastLogin.ToString("yyyy-MM-dd HH:mm") %>]</p>		
                        </div>
						<div class="pageFormContent" layoutH="80" style=" padding:5px!important; " >
                             
                                  <img src="res/images/agentsysbg.jpg" height="99.5%" width="100%"/>    
                            
						</div>						
						
					</div>
					
				</div>
			</div>
		</div>

		<div id="taskbar" style="left:0px; display:none;">
			<div class="taskbarContent">
				<ul></ul>
			</div>
			<div class="taskbarLeft taskbarLeftDisabled" style="display:none;">taskbarLeft</div>
			<div class="taskbarRight" style="display:none;">taskbarRight</div>
		</div>
		<div id="splitBar"></div>
		<div id="splitBarProxy"></div>
	</div>

	<div id="footer">
        Copyright &copy; 2017 <a href="http://www.ihisce.com" target="_blank">石川岛中骏(厦门)建机有限公司</a>&nbsp;&nbsp;
        <span style="color:Fuchsia;">为了使您更好的使用本系统,请使用Google Chrome浏览器访问本平台</span>
    </div>

<!--拖动效果-->
	<div class="resizable"></div>
<!--阴影-->
	<div class="shadow" style="width:508px; top:148px; left:296px;">
		<div class="shadow_h">
			<div class="shadow_h_l"></div>
			<div class="shadow_h_r"></div>
			<div class="shadow_h_c"></div>
		</div>
		<div class="shadow_c">
			<div class="shadow_c_l" style="height:296px;"></div>
			<div class="shadow_c_r" style="height:296px;"></div>
			<div class="shadow_c_c" style="height:296px;"></div>
		</div>
		<div class="shadow_f">
			<div class="shadow_f_l"></div>
			<div class="shadow_f_r"></div>
			<div class="shadow_f_c"></div>
		</div>
	</div>
	<!--遮盖屏幕-->
	<div id="alertBackground" class="alertBackground"></div>
	<div id="dialogBackground" class="dialogBackground"></div>

	<div id='background' class='background'></div>
	<div id='progressBar' class='progressBar'>
        数据加载中，请稍等...
        <div style="text-align:right; font-size:10px; color:Blue;">
            IHISCE
        </div>
    </div>
    

<script src="/MachineSys/JS/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="/MachineSys/xheditor/xheditor-1.1.6-zh-cn.min.js" type="text/javascript"></script>
<script src="/MachineSys/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
    
<script src="/MachineSys/js/dwz.min.js" type="text/javascript"></script>
<script type="text/javascript" >
    /*通用方法*/
    /*1.json日期格式转换成 yyyy-MM-dd*/
    function formatterdate(val, row) {

        if (val == null || val == undefined || val == "") {
            return "";
        }
        return val.substr(0, 10);
        var match;
        if (!(match = val.match(/\d+/))) {
            return "";
        }
        var dt = new Date();
        dt.setTime(match[0] - 0);
        var str = "";
        if (dt.getFullYear) {
            var y, m, d;
            y = dt.getFullYear();
            m = dt.getMonth() + 1; //1-12
            m = "" + m;
            d = "" + dt.getDate();
            if (m.length != 2) {
                m = "0" + m;
            }
            if (d.length != 2) {
                d = "0" + d;
            }
            str = "" + y + "-" + m + "-" + d;
        }
        return str;
    }
</script>
<script type="text/javascript">
    $(function () {

        DWZ.init("/MachineSys/dwz.frag.xml", {
            //loginUrl:"loginsub.html", loginTitle:"登录",	// 弹出登录对话框
            loginUrl: "login.html", // 跳到登录页面
            statusCode: { ok: 200, error: 300, timeout: 301 }, //【可选】
            pageInfo: { pageNum: "pageNum", numPerPage: "numPerPage", orderField: "orderField", orderDirection: "orderDirection" }, //【可选】
            debug: false, // 调试模式 【true|false】
            callback: function () {
                initEnv();
                $("#themeList").theme({ themeBase: "themes" });
                <%if(GetMySettingValue("AutoHideMenu")=="checked") {%>
                setTimeout(function () {
                    $("#sidebar").find(".toggleCollapse").find("div").trigger("click");
                }, 100);
                <%} %>
            }
        });
        <% if (HasPower("AlermWarnSendPartList", new IHISCETeim.Web.Permission[] { IHISCETeim.Web.Permission.查看 }) && GetMySettingValue("AutoPoppingAlarm") == "checked"){%>
        setTimeout(
            "AlermWarnSendPartList()",
            1000
            )
        <%}%>
    });
    /*全局页面及操作错误处理*/
    function GlobalSiteError(msg)
    {
        $.pdialog.open("/MachineSys/GlobalSiteError.aspx?errormsg=" + encodeURI( msg), "GlobalSiteError", "程序运行错误", { width: '550', height: '500', mask: true, maxable: false, minable: false, resizable: 'false', drawable: 'false', fresh: 'false' });
        //alert(msg);
    }
    function AlermWarnSendPartList()
    {
        var dialog = $("body").data("AlermWarnSendPartList");
        if (dialog) {
            return false;
        }
        $.ajax({
            type: 'get',
            url: 'SvrMgr/AlermWarnSendPartList.aspx?ajaxmethod=checkalarm',
            dataType: "text",
            async: true,
            success: function (json) {
                if (json == "1") {
                  //  $("body").data("AlermWarnSendPartList", true);
                    $.pdialog.open("SvrMgr/AlermWarnSendPartList.aspx", "AlermWarnSendPartList", "配件发货警报", { width: '750', height: '500', mask: false, maxable: false, minable: true, resizable: 'false', drawable: 'false', fresh: 'false' });
                }
            }
        })
    }

    function openQltyList(ClaimsNumber) {
        var rel = "editQlty";
        var url = "SvrMgr/AgentQltySvrActList.aspx"//?ClaimsNumber=" + ClaimsNumber;
        var title = "品情汇总";
        var options = { width: 850, height: 450, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
        top.navTab.openTab(rel, url, { title: title, fresh: true, external: false });
        return false;
    }

</script>
<link href="/MachineSys/themes/default/style.css" rel="stylesheet" type="text/css" />
<link href="/MachineSys/themes/css/core.css" rel="stylesheet" type="text/css" />
<link href="/MachineSys/themes/css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<link href="/MachineSys/themes/css/ihiscecss.css" rel="stylesheet" type="text/css" />
<link href="/MachineSys/uploadify/uploadify.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
</body>
</html>